//
//  CYCallHistory.h
//  CreditAddressBook
//
//  Created by Lee on 15/6/1.
//  Copyright (c) 2015年 Lee. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface CYCallHistory : NSObject

/**
 *  id
 */
@property (nonatomic, copy) NSString *callId;

/**
 *  父节点ID
 */
@property (nonatomic, copy) NSString *parentId;

/**
 *  通话状态
 *
 */
@property (nonatomic, copy) NSString *status;

/**
 *  电话号码
 */
@property (nonatomic, copy) NSString *phone;

/**
 *  姓名
 */
@property (nonatomic, copy) NSString *name;

@property (nonatomic, copy) NSString *tlevel;

/**
 *  通话时长
 */
@property (nonatomic, assign) CGFloat duration;

/**
 *  通话总时长
 */
@property (nonatomic, assign) CGFloat durationSum;

/**
 *  创建时间
 */
@property (nonatomic, assign) CGFloat createTime;

/**
 *  通话次数
 */
@property (nonatomic, assign) NSInteger num;

/**
 *  头像图片
 */
//@property (nonatomic, strong) UIImage *headImage;
/**
 *  头像图片名称
 */
@property (nonatomic, strong) NSString *headImageName;

/**本地头像*/
@property (nonatomic, strong) UIImage *thumbnail;

/**
 *  手机通讯录数据库数据ID ios9以前
 */
@property (nonatomic, assign) NSInteger recordID;

/**
 *  手机通讯录数据库数据ID ios9以后
 */
@property (nonatomic, copy) NSString *identifier;

- (void)save;

- (void)update;
@end
